from .button import Button
from .control import Control


class ToolBar(Control):
    '''
    工具栏操作
    '''

    def get_buttons(self):
        '''
        获取工具栏的所有按钮

        :Returns:
            返回按钮对象集合
        '''
        button_list = self.control.GetButtons
        return [Button(button) for button in button_list]